# The following lines of boilerplate have to be in your project's
# CMakeLists in this exact order for cmake to work correctly

# 需要的cmake的最低版本是3.16
cmake_minimum_required(VERSION 3.16)

# 将esp-idf的源码包含进来，类似于STM32的HAL库源码
include($ENV{IDF_PATH}/tools/cmake/project.cmake)

# 添加FreeRTOS头文件路径
include_directories($ENV{IDF_PATH}/components/freertos/include)

# 项目名称，也是编译出来的二进制文件的文件名
project(ESP32_Smart_Lock)

# 指定工具链文件
set(CMAKE_ASM_COMPILER "E:/EmbeddedSoft/Espressif/tools/riscv32-esp-elf/esp-2022r1-11.2.0/riscv32-esp-elf/bin/riscv32-esp-elf-gcc.exe")

# 指定Python路径
set(Python3_EXECUTABLE "E:/EmbeddedSoft/Espressif/python_env/idf5.3_py3.11_env/Scripts/python.exe" CACHE FILEPATH "Path to Python executable")
